Skip to content

Homework1 task1#2

Open
Balancon wants to merge 3 commits intomasterfrom
homework1_task1
Open

Homework1 task1#2
Balancon wants to merge 3 commits intomasterfrom
homework1_task1

Conversation

@Balancon
Copy link
Owner

Я сделал мерж реквест задания 1, которое просто закоммитил в мастер ранее.

def comparison_function(string_1, string_2):
if isinstance(string_1, str) and isinstance(string_2, str):
# return 0
#else:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не нужный код лучше сразу удалять

#else:
if string_1 == string_2:
return 1
elif (not (string_1 == string_2) and len(string_1) > len(string_2)):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

первая часть условия не нужна, так как у тебя не независимое условие, а elif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants